Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed doc param inside Query Builder #2775

Conversation

AlessandroMinoccheri
Copy link
Contributor

Fixed a parameter documentation from string to mixed because it can be a string or an array

@@ -409,7 +409,7 @@ public function getMaxResults()
* 'groupBy', 'having' and 'orderBy'.
*
* @param string $sqlPartName
* @param string $sqlPart
* @param mixed $sqlPart
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be string, no?

Copy link
Contributor Author

@AlessandroMinoccheri AlessandroMinoccheri Jul 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some part of the code for example in line 530 of the same file is passed as an array not as a string right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's because it's upcast (line 423)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I have seen but I thought that you can call this function with a string or with an array so I thought that mixed type is better than string inside documentation.
If It's better string I understand but there are two ways for me to call this function for that parameter

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlessandroMinoccheri use string|string[] or whatever matches then :-)

@morozov
Copy link
Member

morozov commented Nov 28, 2020

Obsolete as of #3836.

@morozov morozov closed this Nov 28, 2020
@AlessandroMinoccheri AlessandroMinoccheri removed their assignment Mar 23, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants